package org.jeecg.modules.zonglzp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zonglzp.entity.AfterOrderEntity;
import org.jeecg.modules.zonglzp.entity.TeamAfterEntity;
import org.jeecg.modules.zonglzp.entity.teamAfteronepersonEntity;
import org.jeecg.modules.zonglzp.entity.trackAfterEntity;

import java.util.List;
import java.util.Map;

public interface orderAfterService {
    //查询售后
    IPage<AfterOrderEntity> getlist(Page<AfterOrderEntity> page, String userId, int ordertype, String orderSn, String starttime, String endtime, String orgCode);


    //获取某个售后订单的详情
    AfterOrderEntity getorderatferdetail(int id);

    //查询某个售后订单的跟踪记录
    List<trackAfterEntity> getAftertrack(String afterOrderId);

    int fahuo(int courierId, String courierNumber, String aftertrackId, int afterId, int ordertype);

    IPage<AfterOrderEntity> getteamafterpeople(Page<TeamAfterEntity> page, int orderafterId);

    List<teamAfteronepersonEntity> getfanxiuParameter(String afterCode, String customerId, int isAfter, String code);

    teamAfteronepersonEntity getReasonName(String afterCode, String customerId, String code);

    List<Map<String, Object>> getSingleOrdercanshu(int id, String productId);


    //通过个订售后id查询产品名字
    String getsingleafterproductName(int id);


    //团订售后中，每次操作跟踪记录里的那批人
    IPage<TeamAfterEntity> getteamaftertrackpeoplegroup(Page<TeamAfterEntity> page, String id);


    //查询这个小产品的批次信息
    Map<String, Object> getonetrackafterorderpersonpici(int id);

    //通过售后订单id查询面料编号
    String getFabricNumberbyafterId(int id);

    //通过token查询权限代码
    String getuserorgCode(String token);
}
